package com.xiaoka.ins.corp.api.gpic.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.springframework.context.annotation.ComponentScan;

@ComponentScan
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "PackageList")
public class RootElementGPIC {
	@XmlAttribute(name = "xmlns:xsi", required = true)
	protected String xmlns = "http://www.w3.org/2001/XMLSchema-instance";

	@XmlElement(name = "Package", required = true)
	protected Package _package;

	public void setXmlns(String xmlns) {
		this.xmlns = xmlns;
	}

	public String getXmlns() {
		return xmlns;
	}

	public Package get_package() {
		return _package;
	}

	public void set_package(Package _package) {
		this._package = _package;
	}

	@XmlAccessorType(XmlAccessType.FIELD)
	@XmlType(name = "", propOrder = { "header", "request", "response" , "sign" })
	public static class Package {
		@XmlElement(name = "Header", required = true)
		protected HeaderElementGPIC header;
		
		@XmlElement(name = "Request", required = true)
		protected RequestElementGPIC request;
		
		@XmlElement(name = "Response", required = true)
		protected ResponseElementGPIC response;
		
		@XmlElement(name = "Sign", required = true)
		protected String sign;

		public HeaderElementGPIC getHeader() {
			return header;
		}

		public void setHeader(HeaderElementGPIC header) {
			this.header = header;
		}

		public RequestElementGPIC getRequest() {
			return request;
		}

		public void setRequest(RequestElementGPIC request) {
			this.request = request;
		}

		public ResponseElementGPIC getResponse() {
			return response;
		}

		public void setResponse(ResponseElementGPIC response) {
			this.response = response;
		}

		public String getSign() {
			return sign;
		}

		public void setSign(String sign) {
			this.sign = sign;
		}
	}
}
